package com.example.test;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
/*
  在spring容器启动时候运行代码
 */
@Component
public class MyApplicationRunner  implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println(11111111);
    }
}
